package com.jeesite.modules.pt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * pt_shichang_buzhouEntity
 * @author 李寒冰
 * @version 2025-04-07
 */
@Table(name="pt_shichang_buzhou", alias="a", label="pt_shichang_buzhou信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="shichang_id", attrName="shichangId", label="shichang_id"),
		@Column(name="xuhao", attrName="xuhao", label="序号", isUpdateForce=true),
		@Column(name="pic", attrName="pic", label="图片"),
		@Column(name="text", attrName="text", label="说明"),
	}, orderBy="a.id DESC"
)
public class PtShichangBuzhou extends DataEntity<PtShichangBuzhou> {
	
	private static final long serialVersionUID = 1L;
	private String shichangId;		// shichang_id
	private Integer xuhao;		// 序号
	private String pic;		// 图片
	private String text;		// 说明

	public PtShichangBuzhou() {
		this(null);
	}
	
	public PtShichangBuzhou(String id){
		super(id);
	}
	
	public String getShichangId() {
		return shichangId;
	}

	public void setShichangId(String shichangId) {
		this.shichangId = shichangId;
	}
	
	public Integer getXuhao() {
		return xuhao;
	}

	public void setXuhao(Integer xuhao) {
		this.xuhao = xuhao;
	}
	
	@Size(min=0, max=255, message="图片长度不能超过 255 个字符")
	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}
	
	@Size(min=0, max=255, message="说明长度不能超过 255 个字符")
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
}